﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace YXShop.Web.membercenter.product
{
    public partial class sendgroupbuyinfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string id = ChangeHope.WebPage.PageRequest.GetQueryString("id");
                bindInfo(id);
            }
        }
        protected void bindInfo(string id)
        {
            YXShop.Common.SysParameter sp = new YXShop.Common.SysParameter();
            YXShop.BLL.Product.Product_SendGroupBuyInfo psbll = new YXShop.BLL.Product.Product_SendGroupBuyInfo();
            YXShop.Model.Product.Product_SendGroupBuyInfo psmodel = psbll.GetModelID(Convert.ToInt32(id));
            if (psmodel != null)
            {
                this.lbAddress.Text = psmodel.Address;
                this.lbContent.Text = psmodel.Content;
                this.lbDescripton.Text = psmodel.Synopsis;
                this.lbEndTime.Text = psmodel.ActivityEndTime.ToString();
                this.lbStarteTime.Text = psmodel.ActivityStartTime.ToString();
                this.lbQQ.Text = psmodel.ActivityQQ;
                this.lbTel.Text = psmodel.Tel.ToString();
                this.lbNO.Text = psmodel.IDCard;
                this.lbTitle.Text = psmodel.Title;
                this.lbName.Text = psmodel.Name;
                this.lbContent.Text = psmodel.Content;
                this.lbImages.Text = "<img src=" + sp.DummyPaht + psmodel.Images + ">";
                this.returnLink.NavigateUrl = "groupbuyinfo_list.aspx";
            }

        }
    }
}
